<?php
declare(strict_types=1);

namespace app\event;

class DistributionOrderCreated
{
    public $merchantId;
    public $orderId;
    public $orderNo;
    public $userId;
    public $parentId;
    public $commission;
    
    public function __construct(array $data)
    {
        $this->merchantId = $data['merchant_id'];
        $this->orderId = $data['order_id'];
        $this->orderNo = $data['order_no'];
        $this->userId = $data['user_id'];
        $this->parentId = $data['parent_id'];
        $this->commission = $data['commission'];
    }
} 